package de.busschedule.view;

import java.io.IOException;

import android.app.Activity;
import android.content.Intent;
import android.database.SQLException;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import de.busschedule.R;
import de.busschedule.control.DBHandler;

public class StopListActivity extends Activity{
	private final String TAG = "StopListActivity";

	@Override
	protected void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_stoplist);

		//Open the database
		DBHandler handler = new DBHandler(this);
		try{
			handler.createDataBase();
		}catch(IOException e){
			throw new Error("could not create database");
		}
		try{
			handler.openDataBase();
		}catch(SQLException sqle){
			Log.e(TAG, "could not open database");
			throw sqle;
		}
		initUI();
	}
	
	public void initUI(){
	}
	
}
